Integrand size = 12, antiderivative size = 56 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=\frac {5 x}{64}-\frac {5 \arctan \left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{32 d}-\frac {3 \sin (c+d x)}{16 d (5+3 \cos (c+d x))} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2743, 12, 2737} \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=-\frac {5 \arctan \left (\frac {\sin (c+d x)}{\cos (c+d x)+3}\right )}{32 d}-\frac {3 \sin (c+d x)}{16 d (3 \cos (c+d x)+5)}+\frac {5 x}{64} \]
[In]
[Out]
Rule 12
Rule 2737
Rule 2743
Rubi steps \begin{align*} \text {integral}& = -\frac {3 \sin (c+d x)}{16 d (5+3 \cos (c+d x))}-\frac {1}{16} \int \frac {5}{-5-3 \cos (c+d x)} \, dx \\ & = -\frac {3 \sin (c+d x)}{16 d (5+3 \cos (c+d x))}-\frac {5}{16} \int \frac {1}{-5-3 \cos (c+d x)} \, dx \\ & = \frac {5 x}{64}-\frac {5 \arctan \left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{32 d}-\frac {3 \sin (c+d x)}{16 d (5+3 \cos (c+d x))} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.77 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=-\frac {5 \arctan \left (2 \cot \left (\frac {1}{2} (c+d x)\right )\right )+\frac {6 \sin (c+d x)}{5+3 \cos (c+d x)}}{32 d} \]
[In]
[Out]
Time = 0.71 (sec) , antiderivative size = 46, normalized size of antiderivative = 0.82
method | result | size |
derivativedivides | \(\frac {-\frac {3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{16 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )}+\frac {5 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{32}}{d}\) | \(46\) |
default | \(\frac {-\frac {3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{16 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )}+\frac {5 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{32}}{d}\) | \(46\) |
parallelrisch | \(\frac {\left (-15 i \cos \left (d x +c \right )-25 i\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2 i\right )+\left (15 i \cos \left (d x +c \right )+25 i\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 i\right )-12 \sin \left (d x +c \right )}{192 d \cos \left (d x +c \right )+320 d}\) | \(78\) |
risch | \(-\frac {i \left (5 \,{\mathrm e}^{i \left (d x +c \right )}+3\right )}{8 d \left (3 \,{\mathrm e}^{2 i \left (d x +c \right )}+10 \,{\mathrm e}^{i \left (d x +c \right )}+3\right )}-\frac {5 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {1}{3}\right )}{64 d}+\frac {5 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+3\right )}{64 d}\) | \(83\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.05 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=-\frac {5 \, {\left (3 \, \cos \left (d x + c\right ) + 5\right )} \arctan \left (\frac {5 \, \cos \left (d x + c\right ) + 3}{4 \, \sin \left (d x + c\right )}\right ) + 12 \, \sin \left (d x + c\right )}{64 \, {\left (3 \, d \cos \left (d x + c\right ) + 5 \, d\right )}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.94 (sec) , antiderivative size = 190, normalized size of antiderivative = 3.39 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=\begin {cases} \frac {x}{\left (-5 - 3 \cosh {\left (2 \operatorname {atanh}{\left (2 \right )} \right )}\right )^{2}} & \text {for}\: c = - d x - 2 i \operatorname {atanh}{\left (2 \right )} \vee c = - d x + 2 i \operatorname {atanh}{\left (2 \right )} \\\frac {x}{\left (- 3 \cos {\left (c \right )} - 5\right )^{2}} & \text {for}\: d = 0 \\\frac {5 \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right ) \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{32 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} + \frac {20 \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{32 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} - \frac {6 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{32 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.38 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.21 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=-\frac {\frac {6 \, \sin \left (d x + c\right )}{{\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 4\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} - 5 \, \arctan \left (\frac {\sin \left (d x + c\right )}{2 \, {\left (\cos \left (d x + c\right ) + 1\right )}}\right )}{32 \, d} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.05 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=\frac {5 \, d x + 5 \, c - \frac {12 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 4} - 10 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 3}\right )}{64 \, d} \]
[In]
[Out]
Time = 0.00 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.20 \[ \int \frac {1}{(-5-3 \cos (c+d x))^2} \, dx=\frac {5\,\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{32\,d}-\frac {5\,\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )}{32\,d}-\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+4\right )} \]
[In]
[Out]